package cn.com.bluemoon.daps.model.vo;

import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class DeleteByIds  implements UserPermissionApi {

    @ApiModelProperty(value = "表id")
    @NotBlank(message = "表id不能为空")
    public String tableId;

    @ApiModelProperty(value = "模型id")
    @NotBlank(message = "模型id不能为空")
    public String modelId;

    @ApiModelProperty(value = "id")
    public List<String> ids = Lists.newArrayList();

    @Override
    public Serializable getUserPermissionKeyValue() {
        return modelId;
    }
}
